CREATE TABLE [dbo].[LoanSocialResearch](
	[LoanSocialResearchID] [uniqueidentifier] NOT NULL,
	[LoanID] [uniqueidentifier] NOT NULL,
	[SocialResearchDate] [datetime] NOT NULL,
	[FamilyNumbers] [int] NOT NULL,
	[IncomeAmount] [float] NOT NULL,
	[Notes] [nvarchar](max) NULL,
 CONSTRAINT [PK_LoanSocialResearch] PRIMARY KEY CLUSTERED 
(
	[LoanSocialResearchID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'عدد أفراد الاسرة' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'LoanSocialResearch', @level2type=N'COLUMN',@level2name=N'FamilyNumbers'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'دخل الاسرة يجب ان يكون اكبر من او يساوى عدد أفراد الاسرة * 150 جنيه' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'LoanSocialResearch', @level2type=N'COLUMN',@level2name=N'IncomeAmount'

